package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Admin;
import org.hxyjs.entity.User;
import org.hxyjs.page.PageInfo;

public interface UserService {
    /**
     * 查询全部
     * @return
     */
    public DTO<User> getAllUsers() throws Exception;
    /**
     * 根据主键查询
     * @return
     */
    public DTO<User> getUserByUno(String uno) throws Exception;
    /**
     *删除
     * @param uno
     * @return
     */
    public DTO<User> deleteUser(String uno) throws Exception;
    /**
     *  修改
     * @param user
     * @return
     */
    public DTO<User> updateUser(User user)  throws Exception;
    /**
     *  增加
     * @param user
     * @return
     */
    public DTO<User> addUserByUno(User user)  throws Exception;

    public DTO<User> getUsersByPage(PageInfo pageInfo) throws Exception;

    public DTO<User> getUsersWithOrders(String  uno)  throws Exception;

    public DTO<User> activate(String  uno)  throws Exception;

    public DTO<User> lettory(String  uno,String giftName)  throws Exception;




}
